<%@page pageEncoding="UTF-8" isELIgnored="false" session="false"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@taglib prefix="f" uri="http://www.slim3.org/functions"%>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>twitter Gyojitter</title>
</head>
<body>
<p>Hello twitter Gyojitter !!!</p>
<a href="${f:h('/gyojitter/gyojitter')}">Gyojiter</a>
    <c:forEach var="tweet" items="${tweets}" varStatus="status">
      <c:choose>
        <c:when test="${status.count % 2 == 0}">
          <c:set var="color" value="#FFFFFF;" />
        </c:when>
        <c:otherwise>
          <c:set var="color" value="#F5F5F5;" />
        </c:otherwise>
      </c:choose>
      <tr>
        <td style="background: none repeat scroll 0% 0% <c:out value="${color}"/> padding: 5px;">
          ${status.count}<br />
          <img src="${tweet.user.profileImageURL}" width="40" height="40">
        </td>
        <td style="background: none repeat scroll 0% 0% <c:out value="${color}"/> padding: 5px;">
          ${f:h(tweet.text)}
        </td>
      </tr>
    </c:forEach>
<%@ include file="/twitter/gyojiit.jsp"%>
</body>
</html>
